Phidget Data Adapter.lvlib:DataAdapteri2cComplexTransaction.vi

Initiates a set of write and read transactions to happen in quick succession.

Phidget Data Adapter.lvlib:DataAdapteri2cComplexTransaction.vi

Device Support:

ADP0001_0 (ver: 200) Data Adapter : Supported

ADP0001_0 (ver: 200) Data Adapter : Supported

ADP0002_0 (ver: 100) Data Adapter : Unsupported

ADP0002_0 (ver: 100) Data Adapter : Unsupported

cu64

Device In

Device # Identification

cerrcodeclst

error in (no error)

error in can accept error information wired from VIs previously called.

ci32

address

The address of the I2C device

cstr

I2CPacketString

Specify the bytes of your I2C packet using 's' for start, 'R' for read, 'T' for write, and 'p' for stop. Only one stop condition per call is supported.

For example, if you wanted to write two bytes, generate a repeat start, write one more byte, then read three bytes, the string would be "sTTsTsRRRp".

You can also use numbers to indicate the number of bytes, e.g. "sT2sTsR3p"

c1du8

data

The entire set of data to send, in order from first to last. The length of this data must match the total number of bytes specified to be sent in the I2CPacketString.

iu64

Device Out

Same as Device In

ierrcodeclst

error out

error out passes error or warning information out of a VI to be used by other VIs.

i1du8

recvData

The received data. This will be made up of all 'R' bytes as specified in the I2CPacketString, in order from first to last.

ii32

recvDataLen

Specifies the length of the recvData array. Returns the number of bytes recieved. If the received data is longer than the recvData array, an error will be thrown. Any error detected in the received data will result in this argument becoming 0.